import React, { useState } from "react";
import style from "./index.module.scss";
import BaseForm, { FieldType } from "../BaseForm";
import PrimaryButton from "../PrimaryButton";
interface LoginCardProps {
  register: boolean;
  setRegister: (value: boolean) => void;
}
export default function LoginCard(props: LoginCardProps) {
  const { register, setRegister } = props;

  return (
    <div className={style["loginCard"]}>
      <div className={style["title"]}>
        <h1>{register ? "注册账号" : "登录账号"}</h1>
      </div>
      <BaseForm setRegister={setRegister} register={register} />
    </div>
  );
}
